﻿@model SnongPhoneShop.Models.DanhMucSanPham
@{
    ViewBag.Title = "ThemDM";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<link href="~/Contents/StyleAdmin.css" rel="stylesheet" />
<h2 style="text-align:center">Nhập thông tin danh mục</h2>
<table border="1">
    @using (Html.BeginForm("ThemDM", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <tr>
            <td>Tên danh mục</td>
            <td>@Html.TextBoxFor(m=>m.TenDanhMuc)</td>
        </tr>
        <tr>
            <td>Số thứ tự</td>
            <td>@Html.TextBoxFor(m=>m.STT)</td>
        </tr>
        <tr>
            <td>Publish</td>
            <td>@Html.DropDownListFor(m => m.Publish, (SelectList)ViewBag.ListPublish, new { Class = "dr" })</td>
        </tr>
        <tr>
            <td>Loại danh mục</td>
            <td>@Html.DropDownListFor(m=>m.MaLoaiDanhMuc,(SelectList)ViewBag.ListLoaiDanhMuc, new { Class = "dr" })</td>
        </tr>
            <td><input type="submit" value="Thêm"/></td>
    }
    </table>